home *** CD-ROM | disk | FTP | other *** search
/ Adventures with Oslo: Tools & Gadgets / Adventures with Oslo - Tools and Gadgets.ISO / mac / Ad / Mod04 / backpak4.Dir / 00005.ls < prev    next >
Encoding:
Text File  |  1994-09-23  |  11.3 KB  |  242 lines

  1. on startMovie
  2.   global gBackPack, gTools
  3.   set QC to the number of cast "questionCursor"
  4.   cursor([QC, QC + 1])
  5.   set HC to the number of cast "handCursor"
  6.   set the cursor of sprite 2 to [HC, HC + 1]
  7.   if voidp(gBackPack) then
  8.     set gBackPack to []
  9.   end if
  10.   if gBackPack = [] then
  11.     go(3)
  12.   else
  13.     if getOne(gBackPack, #loan) = 0 then
  14.       set the visible of sprite 3 to 0
  15.     end if
  16.     if getOne(gBackPack, #prize) = 0 then
  17.       set the visible of sprite 4 to 0
  18.     end if
  19.     if getOne(gBackPack, #rock1) = 0 then
  20.       set the visible of sprite 5 to 0
  21.     end if
  22.     if getOne(gBackPack, #rock2) = 0 then
  23.       set the visible of sprite 6 to 0
  24.     end if
  25.     if getOne(gBackPack, #rock3) = 0 then
  26.       set the visible of sprite 7 to 0
  27.     end if
  28.     if getOne(gBackPack, #rock4) = 0 then
  29.       set the visible of sprite 8 to 0
  30.     end if
  31.     if getOne(gBackPack, #rock5) = 0 then
  32.       set the visible of sprite 9 to 0
  33.     end if
  34.     if getOne(gBackPack, #rock6) = 0 then
  35.       set the visible of sprite 10 to 0
  36.     end if
  37.     if getOne(gBackPack, #rock7) = 0 then
  38.       set the visible of sprite 11 to 0
  39.     end if
  40.     if getOne(gBackPack, #rock8) = 0 then
  41.       set the visible of sprite 12 to 0
  42.     end if
  43.     if getOne(gBackPack, #rock9) = 0 then
  44.       set the visible of sprite 13 to 0
  45.     end if
  46.     if getOne(gBackPack, #rock10) = 0 then
  47.       set the visible of sprite 14 to 0
  48.     end if
  49.     if getOne(gBackPack, #box1) = 0 then
  50.       set the visible of sprite 15 to 0
  51.     end if
  52.     if getOne(gBackPack, #rope1) = 0 then
  53.       set the visible of sprite 16 to 0
  54.     end if
  55.     if getOne(gBackPack, #shovel1) = 0 then
  56.       set the visible of sprite 17 to 0
  57.     end if
  58.     if getOne(gBackPack, #boots) = 0 then
  59.       set the visible of sprite 18 to 0
  60.     end if
  61.     if getOne(gBackPack, #tear) = 0 then
  62.       set the visible of sprite 19 to 0
  63.     end if
  64.     if getOne(gBackPack, #brown) = 0 then
  65.       set the visible of sprite 20 to 0
  66.     end if
  67.     if getOne(gBackPack, #tan) = 0 then
  68.       set the visible of sprite 21 to 0
  69.     end if
  70.     if getOne(gBackPack, #box2) = 0 then
  71.       set the visible of sprite 22 to 0
  72.     end if
  73.     if getOne(gBackPack, #flat) = 0 then
  74.       set the visible of sprite 23 to 0
  75.     end if
  76.     if getOne(gBackPack, #rope2) = 0 then
  77.       set the visible of sprite 24 to 0
  78.     end if
  79.     if getOne(gBackPack, #shovel2) = 0 then
  80.       set the visible of sprite 25 to 0
  81.     end if
  82.     if getOne(gBackPack, #boot) = 0 then
  83.       set the visible of sprite 26 to 0
  84.     end if
  85.     if getOne(gBackPack, #rope3) = 0 then
  86.       set the visible of sprite 27 to 0
  87.     end if
  88.     if getOne(gBackPack, #tear2) = 0 then
  89.       set the visible of sprite 28 to 0
  90.     end if
  91.     if getOne(gBackPack, #shovel3) = 0 then
  92.       set the visible of sprite 29 to 0
  93.     end if
  94.     if getOne(gBackPack, #tan2) = 0 then
  95.       set the visible of sprite 30 to 0
  96.     end if
  97.     if getOne(gBackPack, #boots2) = 0 then
  98.       set the visible of sprite 31 to 0
  99.     end if
  100.     if getOne(gBackPack, #Forceps) = 0 then
  101.       set the visible of sprite 32 to 0
  102.     end if
  103.     if getOne(gBackPack, #coins) = 0 then
  104.       set the visible of sprite 33 to 0
  105.     end if
  106.     set the visible of sprite 48 to 0
  107.   end if
  108. end
  109.  
  110. on enterFrame
  111.   if rollOver(3) and the visible of sprite 3 then
  112.     put "This is your copy of your loan agreement with the bank." into field "description"
  113.   else
  114.     if rollOver(4) and the visible of sprite 4 then
  115.       put "This is a piece of a map." into field "description"
  116.     else
  117.       if rollOver(5) and the visible of sprite 5 then
  118.         put "This is a rock you found in the tunnel." into field "description"
  119.       else
  120.         if rollOver(6) and the visible of sprite 6 then
  121.           put "This is a rock you found in the tunnel." into field "description"
  122.         else
  123.           if rollOver(7) and the visible of sprite 7 then
  124.             put "This is a rock you found in the tunnel." into field "description"
  125.           else
  126.             if rollOver(8) and the visible of sprite 8 then
  127.               put "This is a rock you found in the tunnel." into field "description"
  128.             else
  129.               if rollOver(9) and the visible of sprite 9 then
  130.                 put "This is a rock you found in the tunnel." into field "description"
  131.               else
  132.                 if rollOver(10) and the visible of sprite 10 then
  133.                   put "This is a rock you found in the tunnel." into field "description"
  134.                 else
  135.                   if rollOver(11) and the visible of sprite 11 then
  136.                     put "This is a rock you found in the tunnel." into field "description"
  137.                   else
  138.                     if rollOver(12) and the visible of sprite 12 then
  139.                       put "This is a rock you found in the tunnel." into field "description"
  140.                     else
  141.                       if rollOver(13) and the visible of sprite 13 then
  142.                         put "This is a rock you found in the tunnel." into field "description"
  143.                       else
  144.                         if rollOver(14) and the visible of sprite 14 then
  145.                           put "This is a rock you found in the tunnel." into field "description"
  146.                         else
  147.                           if rollOver(15) and the visible of sprite 15 then
  148.                             put "This is a box you found in the tunnel." into field "description"
  149.                           else
  150.                             if rollOver(16) and the visible of sprite 16 then
  151.                               put "This is a length of rope from the tunnel." into field "description"
  152.                             else
  153.                               if rollOver(17) and the visible of sprite 17 then
  154.                                 put "This is a shovel from the tunnel." into field "description"
  155.                               else
  156.                                 if rollOver(18) and the visible of sprite 18 then
  157.                                   put "This is a muddy, old pair of boots." into field "description"
  158.                                 else
  159.                                   if rollOver(19) and the visible of sprite 19 then
  160.                                     put "This is a rock you found in the tunnel." into field "description"
  161.                                   else
  162.                                     if rollOver(20) and the visible of sprite 20 then
  163.                                       put "This is a rock you found in the tunnel." into field "description"
  164.                                     else
  165.                                       if rollOver(21) and the visible of sprite 21 then
  166.                                         put "This is a rock you found in the tunnel." into field "description"
  167.                                       else
  168.                                         if rollOver(22) and the visible of sprite 22 then
  169.                                           put "This is an empty box you found in the tunnel." into field "description"
  170.                                         else
  171.                                           if rollOver(23) and the visible of sprite 23 then
  172.                                             put "This is a rock you found in the tunnel." into field "description"
  173.                                           else
  174.                                             if rollOver(24) and the visible of sprite 24 then
  175.                                               put "This is a length of rope from the tunnel." into field "description"
  176.                                             else
  177.                                               if rollOver(25) and the visible of sprite 25 then
  178.                                                 put "This is a shovel from the tunnel." into field "description"
  179.                                               else
  180.                                                 if rollOver(26) and the visible of sprite 26 then
  181.                                                   put "This is a boot from the tunnel." into field "description"
  182.                                                 else
  183.                                                   if rollOver(27) and the visible of sprite 27 then
  184.                                                     put "This is a length of rope from the tunnel." into field "description"
  185.                                                   else
  186.                                                     if rollOver(28) and the visible of sprite 28 then
  187.                                                       put "This is a rock from the tunnel." into field "description"
  188.                                                     else
  189.                                                       if rollOver(29) and the visible of sprite 29 then
  190.                                                         put "This is a shovel from the tunnel." into field "description"
  191.                                                       else
  192.                                                         if rollOver(30) and the visible of sprite 30 then
  193.                                                           put "This is a rock you found in the tunnel." into field "description"
  194.                                                         else
  195.                                                           if rollOver(31) and the visible of sprite 31 then
  196.                                                             put "These are somebody's old boots." into field "description"
  197.                                                           else
  198.                                                             if rollOver(32) and the visible of sprite 32 then
  199.                                                               put "These are the forceps Dr. Carter gave you." into field "description"
  200.                                                             else
  201.                                                               if rollOver(33) and the visible of sprite 33 then
  202.                                                                 put "These are the coins Neighbor Bob gave you." into field "description"
  203.                                                               else
  204.                                                                 put " " into field "description"
  205.                                                               end if
  206.                                                             end if
  207.                                                           end if
  208.                                                         end if
  209.                                                       end if
  210.                                                     end if
  211.                                                   end if
  212.                                                 end if
  213.                                               end if
  214.                                             end if
  215.                                           end if
  216.                                         end if
  217.                                       end if
  218.                                     end if
  219.                                   end if
  220.                                 end if
  221.                               end if
  222.                             end if
  223.                           end if
  224.                         end if
  225.                       end if
  226.                     end if
  227.                   end if
  228.                 end if
  229.               end if
  230.             end if
  231.           end if
  232.         end if
  233.       end if
  234.     end if
  235.   end if
  236.   if field "description" = " " then
  237.     set the visible of sprite 48 to 0
  238.   else
  239.     set the visible of sprite 48 to 1
  240.   end if
  241. end
  242.